using HH.WCS.JiaTong_DCJ.models; using SqlSugar; using System; namespace HH.WCS.JiaTong_DCJ { [SugarTable("TN_Operation")] public class WMSTask : BaseModel { public string S_CODE { get; set; } public string S_TYPE { get; set; } public string S_NOTE { get; set; } public DateTime? T_START_TIME { get; set; } public DateTime? T_END_TIME { get; set; } public string S_CNTR_CODE { get; set; } /// /// 0 �ȴ�/1 ִ��/2 ���/3 ����/4 ��۽ʧ�� /5 ��ͣ��۽ /// public int N_B_STATE { get; set; } public string S_ERR { get; set; } public string S_EXT_DATA { get; set; } /// /// ��Ҫ���ݳ����Զ�ת�� /// public string S_B_STATE { get; set; } = "�ȴ�"; /// /// 1��� 2���� /// public int N_TYPE { get; set; } public string S_OP_DEF_NAME { get; set; } /// /// Ӧ�ø��ݻ�λ���Ҳֿ��Ӧ�Ĺ��� /// public string S_FACTORY { get; set; } = util.Settings.FacCode; public int N_PRIORITY { get; set; } public string S_OP_DEF_CODE { get; set; } public string S_START_WH { get; set; } public string S_START_AREA { get; set; } public string S_START_LOC { get; set; } public string S_END_WH { get; set; } public string S_END_AREA { get; set; } public string S_END_LOC { get; set; } public string S_BS_TYPE { get; set; } public string S_BS_NO { get; set; } public string S_STATE_PRE { get; set; } public int N_REVIEW_RESULT { get; set; } public int N_LASTE_B_STATE { get; set; } public string C_NEED_SORTING { get; set; } = "N"; public int N_FAIL_COUNT { get; set; } public int N_FAIL_MAX { get; set; } public DateTime? T_LAST_FAIL { get; set; } /// /// 0 �ȴ�/1 ִ��/2 ���/3 ����/4 ��۽ʧ�� /5 ��ͣ��۽ /// /// internal static string GetStateStr(int state) { var status = ""; switch (state) { case 0: status = "�ȴ�"; break; case 1: status = "ִ��"; break; case 2: status = "���"; break; case 3: status = "����"; break; case 4: status = "���ʧ��"; break; case 5: status = "��ͣʧ��"; break; } return status; } internal static string GetTypeStr(int v) { var str = ""; switch (v) { case 1: str = "���"; break; case 2: str = "����"; break; } return str; } } }